package com.xkdx.guangguang.card;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.network.AbsAction.Parameter;
import com.xkdx.guangguang.module.statics.IConstants;

public class CardDetailAction extends AbsAction {

	String CinfoID, ComeForm, Latitude, Longitude, PageIndex, PageSize;

	public CardDetailAction(String CinfoID, String Latitude, String Longitude,
			String PageIndex, String PageSize) {
		this.url=IConstants.INFO_URL;
		this.CinfoID = CinfoID;
		this.Latitude = Latitude;
		this.Longitude = Longitude;
		this.PageIndex = PageIndex;
		this.PageSize = PageSize;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("CinfoID", CinfoID);
		map.put("ComeForm", ComeForm);

		map.put("Latitude", Latitude);
		map.put("Longitude", Longitude);

		map.put("PageIndex", PageIndex);
		map.put("PageSize", PageSize);
		String json = constructJson(map);
		Parameter parameter = new Parameter("CardChapterAction",
				"getCardDetail", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}
}
